import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DeviceGroupListComponent } from './device-group-list/device-group-list.component';
import { DeviceInspectionPlanComponent } from './device-inspection-plan/device-inspection-plan.component';
import { DeviceInspectionTaskHandleComponent } from './device-inspection-task/device-inspection-task-handle/device-inspection-task-handle.component';
import { DeviceInspectionTaskComponent } from './device-inspection-task/device-inspection-task.component';
import { DeviceInspectionTemplateComponent } from './device-inspection-template/device-inspection-template.component';
import { DeviceListComponent } from './device-list/device-list.component';
import { DeviceMaintainPlanComponent } from './device-maintain-plan/device-maintain-plan.component';
import { DeviceMaintainTaskComponent } from "./device-maintain-task/device-maintain-task.component";
import { DeviceRepairComponent } from "./device-repair/device-repair.component";


const routes: Routes = [
  {path: 'index', component: DeviceListComponent, data: { title: '设备维护' }},
  {path: 'device-group', component: DeviceGroupListComponent, data: { title: '设备类型' }},
  {path: 'device-maintain-plan', component: DeviceMaintainPlanComponent, data: { title: '保养计划' }},
  {path: 'device-maintain-task', component: DeviceMaintainTaskComponent, data: { title: '保养任务' }},
  {path: 'device-inspection-plan', component: DeviceInspectionPlanComponent, data: { title: '检验计划' }},
  {path: 'device-inspection-task', component: DeviceInspectionTaskComponent, data: { title: '检验任务' }},
  {path: 'device-inspection-handle/:id/:operator', component: DeviceInspectionTaskHandleComponent, data: { title: '检验任务处理' }},
  {path: 'device-inspection-template', component: DeviceInspectionTemplateComponent, data: { title: '检验模板' }},
  {path: 'device-repair', component: DeviceRepairComponent, data: { title: '设备维修' }},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class DeviceRoutingModule {
}
